package Schedule::Chronic::Distributed::Requirement;

=head1 NAME

Schedule::Chronic::Distributed::TaskHistory - Task History

=head1 SYNOPSIS

use Schedule::Chronic::Distributed::TaskHistory;

Schedule::Chronic::Distributed::TaskHistory->create_from_task($task);

=head1 DESCRIPTION

Task History class, represents the history of a task, providing times, status, warnings and 
errors of each attempt to run a task.

=head1 METHODS

=head2 ACCESSORS

=over

=item id

=item name

=item description 

=item handler

=item type

=back

=cut

use strict;

use Module::Pluggable require => 1, search_path => ['Schedule::Chronic::Distributed::Constraint'];
use base qw(Schedule::Chronic::Distributed::DBI);

Schedule::Chronic::Distributed::Requirement->table('requirement');
__PACKAGE__->sequence('requirement_id_seq');
Schedule::Chronic::Distributed::Requirement->columns(All => qw/id name description handler type/);
Schedule::Chronic::Distributed::Requirement->columns(Primary => 'id');

1;


=head1 SEE ALSO

Schedule::Chronic::Distributed::Task

Schedule::Chronic::Distributed::TaskRequirement

=head1 AUTHOR

aaron trevena, E<lt>aaron.trevena@gmail.comE<gt>

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2006 by Aaron Trevena

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.5 or,
at your option, any later version of Perl 5 you may have available.

=cut
